package com.xrit.dao;

import com.xrit.pojo.User;
import org.springframework.stereotype.Repository;

@Repository
public class UserDao {
    public User findByUsername(String username) {
        //创建user对象
        User user = new User();
        //把用户名、密码添加进对象
        user.setUserName("wang");
        user.setPassWord("$2a$10$qB8n7dak.XoYaT9XxabRTeh.XnHc/QKaKRYF/Dq3w9LEQ4lzmgvPO");
        //返回对象
        return user;
    }
}
